| Plate editing {GCDkit} | R Documentation |
A collection of functions to modify the properties of a plate (or all its diagrams) simultaneously.
plateUser(...)
plateCex(n=NULL)
plateCexMain(n=NULL)
plateCexLab(n=NULL)
plateAnnotationsRemove()
platePch(pch=NULL)
plateCol(col=NULL)
plateBW()
plateXLim(xlim=NULL)
plateYLim(ylim=NULL)
plate0YLim()
plateExpand(scr=NULL)
plateExtract(diagram,which=NULL,main=NULL,calc.only=FALSE,...)
... |
(for |
n |
relative size (use n = 1 for standard one). |
pch |
plotting symbol specification, either as string or a numeric code (showSymbols). |
col |
colour specification, either by its English name, or by a numeric code (showColours). |
xlim |
scaling for the x axis. |
ylim |
scaling for the y axis. |
scr |
number of screen to be expanded. |
diagram |
name of the plotting function producing a plate. |
which |
sequential number of plot in its definition. |
main |
optional alternative main title to the diagram. |
calc.only |
logical; should be performed only calculations, without plotting? |
Most of these functions serve to simultaneously change properties of all individual
diagrams forming the given plate.
They can be used to set up a uniform size of plotting symbols ('plateCex'),
scaling the main title ('plateCexMain'), set up a uniform size of
the axes' labels ('plateCexLab'), remove the annotations
of classification fields ('plateAnnotationsRemove'),
specifying a uniform plotting symbol
('platePch') and/or colour
('plateCol') to all plots, or set
them into black and white ('plateBW').
Several parameters can be changed at the same time,
using the powerful function 'plateUser'. It simply
passes all its arguments to the function 'figUser', invoked for
modification of each of the individual slots.
If the same variable is plotted as x or y axis in all diagrams forming the plate
(e.g., on Harker plots), it can be
scaled at once by means of the functions 'plateXLim' and 'plateYLim'.
Using the command 'plate0YLim' it is possible to set the origin of all
non-logarithmic y axes to zero.
The function 'plateExpand' displays an expanded version of the selected
diagram in a separate window.
The function 'plateExtract' extracts a Figaro definition of a single plot
from a plate normally plotted by the function 'diagram'.
If 'calc.only' is 'FALSE', the diagram is displayed,
either in a separate window or in the current slot, if the active graphical window
contains a plate.
None.
Vojtěch Janoušek, vojtech.janousek@geology.cz
Pearce JA, Harris NW & Tindle AG (1984) Trace element discrimination diagrams for the tectonic interpretation of granitic rocks. J Petrology 25: 956-983. doi: 10.1093/petrology/25.4.956
Plate, figaro, figUser, par, figCol, figScale, showSymbols, showColours
sampleDataset("sazava")
multiplePerPage(which=c("binary(\"K2O/Na2O\",
\"Rb\",new=FALSE)","DebonPQ","DebonBMgNo","AFM","PeceTaylor","Shand"))
plateCex(0.5)
plateCex(2)
platePch(11)
platePch("+")
plateCol(11)
plateCol("red")
plateBW()
# For power users
plateUser(las=3,cex=2.5,col="darkred",cex.axis=1.5,cex.lab=1.8)
# Harkers
multiple("SiO2",major)
plateCex(2)
plateXLim(c(50,70))
plate0YLim()
# Spiders
groupsByLabel("Intrusion")
spider(WR,selectNorm("Boynton"),0.1,1000,pch=labels$Symbol,col=labels$Colour,cex=2)
figMulti(plot.symb=TRUE)
plateYLim(c(1,100))
plateExpand(2)
# Second plot of Pearce et al. (1984), i.e. Y-Nb
graphicsOff()
plateExtract("PearceGranite",2)